Import('env')
import sys

files = [
		"Drawing.cpp",
		"GameSystem.cpp",
        "Main.cpp",
        "MapEditor.cpp",
        "MapSystem.cpp",
        "Menu.cpp",
        "Misc.cpp",
        "PlayerSystem.cpp",
        ]

if sys.platform == 'darwin':
	files += [ "OS/OSX/Music.cpp", "OS/OSX/Input.cpp", "OS/OSX/Misc.cpp", "OS/OSX/WindowControl.cpp", "../SDLMain.m", ]

if sys.platform != 'darwin':
	cxxflags = "`pkg-config --cflags libpng gstreamer-0.10 gtk+-2.0`"
	linkflags = "`pkg-config --libs libpng gstreamer-0.10 gtk+-2.0`"
else:
	cxxflags = "`pkg-config --cflags libpng`"
	linkflags = "`pkg-config --libs libpng`"
cxxflags += " `sdl-config --cflags`"
linkflags += " `sdl-config --libs`"
Progenv = env.Copy(CXXFLAGS = cxxflags,
                 LINKFLAGS = linkflags)
Progenv.Program("../Binary/Veni-Venchi", files, LIBS = ['GL'])
